import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SYSTEM: AppRouteRecordRaw = {
  path: '/codegen',
  name: 'codegenEdit',
  component: DEFAULT_LAYOUT,
  meta: {
    requiresAuth: true,
    hideInMenu: true,
  },
  children: [
    {
      path: 'edit',
      name: 'CodegenEdit',
      component: () =>
        import('@/views/infrastructure/codegen/codegen-edit/index.vue'),
      meta: {
        title: '生成代码配置',
        requiresAuth: true,
        hideInMenu: true,
      },
    },
    // {
    //   path: 'dictionary',
    //   name: 'dictionary',
    //   component: () => import('@/views/system/dictionary/index.vue'),
    //   meta: {
    //     // locale在./locale/zh-CN.ts中（未配置en-US.ts)
    //     // locale: 'menu.system.dictionary',
    //     title: '数据字典',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
  ],
};

export default SYSTEM;
